home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 2000 November: Tool Chest / Dev.CD Nov 00 TC Disk 2.toast / pc / sample code / sound / sndplaydoublebuffer / _headers / private_dbfffunctions.h < prev    next >
Encoding:
C/C++ Source or Header  |  2000-09-28  |  2.2 KB  |  80 lines

  1. /*
  2.     File:        Private_DBFFFunctions.h
  3.  
  4.     Contains:    Headers for routines demonstrating how to deal with house keeping
  5.                 associated with playing sound.    
  6.  
  7.     Written by: Mark Cookson
  8.  
  9.     Copyright:    Copyright © 1996-1999 by Apple Computer, Inc., All Rights Reserved.
  10.  
  11.                 You may incorporate this Apple sample source code into your program(s) without
  12.                 restriction. This Apple sample source code has been provided "AS IS" and the
  13.                 responsibility for its operation is yours. You are not permitted to redistribute
  14.                 this Apple sample source code as "Apple sample source code" after having made
  15.                 changes. If you're going to re-distribute the source, we require that you make
  16.                 it clear in the source that the code was descended from Apple sample source
  17.                 code, but that you've made changes.
  18.  
  19.     Change History (most recent first):
  20.                 8/31/1999    Karl Groethe    Updated for Metrowerks Codewarror Pro 2.1
  21.                 
  22.  
  23. */
  24.  
  25. #ifndef __PRIVATE_DBFFFUNC__
  26. #define __PRIVATE_DBFFFUNC__
  27.  
  28. #include <FSM.h>
  29.  
  30. #ifndef __INTERRUPT_ROUTINES__
  31. #include "Interrupt_Routines.h"
  32. #endif
  33.  
  34. #ifndef __MyAIFF__
  35. #include "AIFF.h"
  36. #endif
  37.  
  38. #ifndef __SND__
  39. #include "SND.h"
  40. #endif
  41.  
  42. #ifndef __ULAW__
  43. #include "ULAW.h"
  44. #endif
  45.  
  46. #ifndef __WAVE__
  47. #include "WAVE.h"
  48. #endif
  49.  
  50. #ifndef __LDANDFIX__
  51. #include "LDandFix.h"
  52. #endif
  53.  
  54. #ifndef __DEFINES__
  55. #include "Defines.h"
  56. #endif
  57.  
  58. /* Function declarations for private functions */
  59. OSErr            ASoundInit                (SoundInfoPtr theSoundInfo);
  60. Boolean            IsValid                    (SoundInfoPtr theSoundInfo);
  61. Boolean            StrictIsValid            (SoundInfoPtr theSoundInfo);
  62. Boolean            CheckValididity            (SoundInfoPtr theSoundInfo,
  63.                                         Boolean strict);
  64. pascal Boolean    ASoundFileFilter        (CInfoPBPtr theFileInfo);
  65. OSErr            ASoundSetNumBuffers        (SoundInfoPtr theSoundInfo,
  66.                                         long newValue);
  67. OSErr            ASoundSetBufferSize        (SoundInfoPtr theSoundInfo,
  68.                                         long newValue);
  69. OSErr            ASoundSetSoundLength    (SoundInfoPtr theSoundInfo,
  70.                                         long newValue);
  71. OSErr            InstallCallBack            (SoundInfoPtr theSoundInfo);
  72. OSErr            SetUpSoundHeader        (SoundInfoPtr theSoundInfo,
  73.                                         unsigned long bufferSize);
  74. OSErr            ASoundPrimeBuffers        (SoundInfoPtr theSoundInfo);
  75. OSErr            PauseSound                (SoundInfoPtr theSoundInfo);
  76. OSErr            ResumeSound                (SoundInfoPtr theSoundInfo);
  77. Rect            GetMainScreenRect        (void);
  78.  
  79. #endif
  80.